﻿using furion.blog.Application.Contracts;
using furion.blog.Domain.IRepositories;
using furion.blog.Domain.Query.EmailSendLog;
using furion.blog.Domain.Shared;
using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Application
{
    public class EmailSendLogService : IEmailSendLogService , ISingleton
    {
        private readonly IEmailSendLogRepository _emailSendLogRepository;
        public EmailSendLogService(IEmailSendLogRepository emailSendLogRepository) {
            this._emailSendLogRepository = emailSendLogRepository;
        }

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public async Task<PageVO> List(EmailSendLogListQuery query) {
            return await this._emailSendLogRepository.List(query);
        }

    }
}
